package main

import "fmt"

type AInterface interface {
	a()
}
type BInterface interface {
	b()
}

type Stu struct {
}

func (s Stu) a() {
	fmt.Println("aaa")
}
func (s Stu) b() {
	fmt.Println("bbb")
}

func main() {
	var s Stu
	var a AInterface = s
	var b BInterface = s
	a.a() // 打印 aaa
	b.b() // 打印 bbb
}
